home *** CD-ROM | disk | FTP | other *** search
- /*
- * Copyright (C) 1994, Silicon Graphics, Inc.
- * All Rights Reserved.
- *
- * This is UNPUBLISHED PROPRIETARY SOURCE CODE of Silicon Graphics, Inc.;
- * the contents of this file may not be disclosed to third parties, copied or
- * duplicated in any form, in whole or in part, without the prior written
- * permission of Silicon Graphics, Inc.
- *
- * RESTRICTED RIGHTS LEGEND:
- * Use, duplication or disclosure by the Government is subject to restrictions
- * as set forth in subdivision (c)(1)(ii) of the Rights in Technical Data
- * and Computer Software clause at DFARS 252.227-7013, and/or in similar or
- * successor clauses in the FAR, DOD or NASA FAR Supplement. Unpublished -
- * rights reserved under the Copyright Laws of the United States.
- */
- /*
- * ivcalc.h - header file from xcalc used for ivcalc
- *
- * Copyright 1989 by the Massachusetts Institute of Technology
- */
-
- #ifdef SIGNALRETURNSINT
- #define signal_t int
- #else
- #define signal_t void
- #endif
-
- #define kRECIP 0 /* reciprocal */
- #define kSQR 1 /* square */
- #define kSQRT 2 /* square root */
- #define kCLR 3 /* clear */
- #define kOFF 4 /* clear and quit */
- #define kINV 5 /* inverse */
- #define kSIN 6 /* sine */
- #define kCOS 7 /* cosine */
- #define kTAN 8 /* tangent */
- #define kDRG 9 /* degree radian grad */
- #define kE 10 /* the natural number e */
- #define kEE 11 /* scientific notation */
- #define kLOG 12 /* logarithm */
- #define kLN 13 /* natural logarithm */
- #define kPOW 14 /* power */
- #define kPI 15 /* pi */
- #define kFACT 16 /* factorial */
- #define kLPAR 17 /* left paren */
- #define kRPAR 18 /* right paren */
- #define kDIV 19 /* division */
- #define kSTO 20 /* store */
- #define kSEVEN 21 /* 7 */
- #define kEIGHT 22 /* 8 */
- #define kNINE 23 /* 9 */
- #define kMUL 24 /* multiplication */
- #define kRCL 25 /* recall */
- #define kFOUR 26 /* 4 */
- #define kFIVE 27 /* 5 */
- #define kSIX 28 /* 6 */
- #define kSUB 29 /* subtraction */
- #define kSUM 30 /* summation */
- #define kONE 31 /* 1 */
- #define kTWO 32 /* 2 */
- #define kTHREE 33 /* 3 */
- #define kADD 34 /* addition */
- #define kEXC 35 /* exchange display and memory */
- #define kZERO 36 /* 0 */
- #define kDEC 37 /* decimal point */
- #define kNEG 38 /* negation */
- #define kEQU 39 /* equals */
- #define kENTR 40 /* enter */
- #define kXXY 41 /* exchange X and Y registers */
- #define kEXP 42 /* exponent */
- #define k10X 43 /* 10 raised to a power */
- #define kROLL 44 /* roll stack */
- #define kNOP 45 /* no operation */
- #define kBKSP 46 /* backspace */
-
- #define XCalc_MEMORY 0 /* memory indicator */
- #define XCalc_INVERSE 1 /* inverse function indicator */
- #define XCalc_DEGREE 2 /* degree indicator */
- #define XCalc_RADIAN 3 /* radian indicator */
- #define XCalc_GRADAM 4 /* grad indicator */
- #define XCalc_PAREN 5 /* parenthesis indicator */
-